package com.xtkj.stcrm.dao;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

import com.xtkj.stcrm.pojo.User;

public interface IUserMapper {
	
	@Select("select * from tbuser where login_id = #{loginId} order by createdt")
	@Results(value = {
			@Result(id = true,column = "user_id",property = "userId"),
			@Result(column = "user_name",property = "userName"),
			@Result(column = "login_id",property = "loginId"),
			@Result(column = "login_pwd",property = "loginPwd")
	})
	public User checkLogin(@Param("loginId") String loginId);
}
